home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4641 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  771 b 

  1. Path: jaring.my!usenet
  2. From: Tan Shu Wei <tsw@shuwei.pl.my>
  3. Newsgroups: comp.lang.c
  4. Subject: Help on random numbers
  5. Date: 6 Feb 1996 07:50:59 GMT
  6. Organization: cmsg cancel <47du5b$g6k@news.gate.net>
  7. Message-ID: <4f7193$4bi@jaring.my>
  8. NNTP-Posting-Host: j6.ptl1.jaring.my
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  13.  
  14. Hi everyone. I need some help on generating random numbers.
  15.  
  16. I'm using Turbo C++ under DOS, and I would like to know how
  17. to generate random numbers. I've tried using random() and 
  18. randomize() but I keep getting the same random number. Can 
  19. help me, or even give me a short explanation on how randomize()
  20. works?
  21.  
  22. Please e-mail. Thanks.
  23.  
  24. --
  25. Shoe,
  26. tsw@shuwei.pl.my
  27.  
  28.